package com.budwk.app.wxprogram.models;

/**
 * @title: Wx_area
 * @Author Tan
 * @Date: 2023/4/12 9:16
 * @Version 1.0
 */

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;


/**
 * 行政区划对象 wx_area
 *
 * @author dfxy
 * @date 2023-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("wx_area")
@Comment("行政区划表")
@ApiModel(description = "行政区划表")
public class Wx_area extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;


    @Column
    @Comment("区域id")
    @Id
    @ApiModelProperty(description = "区域id")
    @ColDefine(type = ColType.INT, width = 64)
    @PrevInsert(els = {@EL("uuid()")})
    private Integer id;
    /**
     * 上级区域ID
     */
    @Comment("上级区域ID")
    @Column
    @ApiModelProperty(description = "上级区域ID")
    @ColDefine(type = ColType.INT, width = 200)
    private Integer parent_id;
    /**
     * 行政区域等级 1-省 2-市 3-区县 4-街道镇
     */
    @Comment("行政区域等级 1-省 2-市 3-区县 4-街道镇")
    @Column
    @ApiModelProperty(description = "行政区域等级 1-省 2-市 3-区县 4-街道镇")
    @ColDefine(type = ColType.INT, width = 200)
    private Integer level;
    /**
     * 名称
     */
    @Comment("名称")
    @Column
    @ApiModelProperty(description = "名称")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String name;
    /**
     * 完整名称
     */
    @Comment("完整名称")
    @Column
    @ApiModelProperty(description = "完整名称")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String whole_name;
    /**
     * 本区域经度
     */
    @Comment("本区域经度")
    @Column
    @ApiModelProperty(description = "本区域经度")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String lon;
    /**
     * 本区域维度
     */
    @Comment("本区域纬度")
    @Column
    @ApiModelProperty(description = "本区域纬度")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String lat;
    /**
     * 电话区号
     */
    @Comment("电话区号")
    @Column
    @ApiModelProperty(description = "电话区号")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String city_code;
    /**
     * 邮政编码
     */
    @Comment("邮政编码")
    @Column
    @ApiModelProperty(description = "邮政编码")
    @ColDefine(type = ColType.CHAR, width = 200)
    private Character zip_code;
    /**
     * 行政区划代码
     */
    @Comment("行政区划代码")
    @Column
    @ApiModelProperty(description = "行政区划代码")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String area_code;
    /**
     * 名称全拼
     */
    @Comment("名称全拼")
    @Column
    @ApiModelProperty(description = "名称全拼")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String pin_yin;
    /**
     * 首字母简拼
     */
    @Comment("首字母简拼")
    @Column
    @ApiModelProperty(description = "首字母简拼")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String simple_py;
    /**
     * 区域名称拼音的第一个字母
     */
    @Comment("区域名称拼音的第一个字母")
    @Column
    @ApiModelProperty(description = "区域名称拼音的第一个字母")
    @ColDefine(type = ColType.CHAR, width = 200)
    private Character per_pin_yin;

}